#ifndef _MT5_UIACHIEVEMENT_H_
#define _MT5_UIACHIEVEMENT_H_

#include "mat_ui_popupanimator.h"
#include "mat_define.h"

#include "gameflow/ui_popup.h"

class MATUIAchievement : public MATUIPopupAnimator
{
public:

	MATUIAchievement(gameflow::UIPopup* pPopup);	
	virtual void		Show();
	virtual void		OnAnimatedUIFinish();
	static int			CalculateCount();
	virtual void		OnMouseButtonDown(const math::Vec2& Pos);


protected:

	void				BuildUI();		
	void				HideOffScreens();

	void DELEGATE_CALL	OnButtonClose(ui::UIWidget::WIDGET_EVENT Event, ui::UIWidget* pWidget);

	
	ui::UIWidget*		m_pIcons[RMS_ACH_C];
	ui::UIWidget*		m_pText[RMS_ACH_C];
	ui::UIWidget*		m_pDesc[RMS_ACH_C];

	math::Vec2			m_PreviousMousePos;
};


class MATPopupAchievement : public gameflow::UIPopup
{
public:

	MATPopupAchievement();

	virtual void		Tick(float dt);

protected:

};

#endif